package com.twu.biblioteca;


public class ReserveBooksState implements State {

    public static ReserveBooksState instance = new ReserveBooksState();
    BibliotecaApp biblio = new BibliotecaApp();

    private ReserveBooksState (){

    }

    public void setBibliotecaApp(BibliotecaApp newBiblioteca) {
        this.biblio = newBiblioteca;
    }

    @Override
    public String getMessage() {
        return "Please select the number of the book you want to reserve:\n" + biblio.listBooks();
    }

    @Override
    public String getMenuOption() {
        return "Reserve A Book";
    }

    @Override
    public State change(String input) {
        System.out.println(biblio.selectedBook(input));
        return MenuState.instance;
    }
}
